function Config() {
  
  // Debug
  this.FAKE_LOADING_TIME = 100; // Not used because Config is not loaded when used. TODO:
  
  // Tile ids
  this.APPLE_TILE_ID = 8;
  this.BANANA_TILE_ID = 9;
  this.BREAD_TILE_ID = 10;
  this.MEAT_TILE_ID = 11;
  this.RICE_TILE_ID = 12;
  
  this.ENVELOPE_PART_TILE_ID = 16;
  this.ROPE_TILE_ID = 17;
  this.BALLAST_SACK_TILE_ID = 18;
  this.BURNER_TILE_ID = 19;
  this.BASKET_TILE_ID = 20;
  
  this.KNIFE_TILE_ID = 13;
  this.MACHETE_TILE_ID = 14;
  this.AXE_TILE_ID = 15;
  this.CHAINSAW_TILE_ID = 21;
  
  this.SPAWN_TILE_ID = 66;
  this.YIGGDRASIL_TILE_ID = 67;
  
  
  // Tile id meta data
  this.GRASS_MIN_ID = 0;
  this.GRASS_MAX_ID = 7;

  this.WATER_MIN_ID = 56;
  this.WATER_MAX_ID = 63;
  
  this.ROCK_MIN_ID = 48;
  this.ROCK_MAX_ID = 51;
  
  this.STONE_MIN_ID = 52;
  this.STONE_MAX_ID = 55;
  
  this.RIVER_HOR_MIN_ID = 56;
  this.RIVER_HOR_MAX_ID = 57;
  
  this.RIVER_VER_MIN_ID = 58;
  this.RIVER_VER_MAX_ID = 59;



  // Food values
  this.FOOD_FROM_APPLE = 10;
  this.FOOD_FROM_BANANA = 20;
  this.FOOD_FROM_BREAD = 35;
  this.FOOD_FROM_MEAT = 50;
  this.FOOD_FROM_RICE = 100;


  // Point values
  this.POINTS_FROM_APPLE = 5;
  this.POINTS_FROM_BANANA = 10;
  this.POINTS_FROM_BREAD = 25;
  this.POINTS_FROM_MEAT = 50;
  this.POINTS_FROM_RICE= 75;
  
  this.POINTS_FROM_ENVELOPE_PART = 10;
  this.POINTS_FROM_ROPE = 10;
  this.POINTS_FROM_BALLAST_SACK = 10;
  this.POINTS_FROM_BURNER = 10;
  this.POINTS_FROM_BASKET = 10;
  
  this.POINTS_FROM_KINFE = 1;
  this.POINTS_FROM_MACHETE = 10;
  this.POINTS_FROM_AXE = 100;
  this.POINTS_FROM_CHAINSAW = 1000;
  this.POINTS_FROM_BIEVER = 10000;


  // Required items
  this.REQUIRED_ENVELOPE_PARTS = 50;
  this.REQUIRED_ROPES = 20;
  this.REQUIRED_BALLAST_SACKS = 8;
  this.REQUIRED_BURNERS = 1;
  this.REQUIRED_BASKETS = 1;
  
  
  // Weapons
  this.PARTICLES_PER_TICK = [ 1, 1, 1, 1, 2, 3];
  this.TICKS_PER_PARTICLE_BURST = [ 1, 3, 2, 1, 1, 1];


  // Levels
  this.NUM_LEVELS = 4;

  this.levels = [];
  
  var level = new Level();
  level = new Level();
  
  // Level 1
  level.numApples = 20;
  level.numBananas = 15;
  level.numBread = 10;
  level.numMeat = 5;
  level.numRice = 1;
  
  level.pieceDistribution = 0.5;
  level.numMachetes = 3;
  level.numAxes = 1;
  level.numChainSaws = 0;
  level.itemDistribution = { food: 0.4, balloonPiece: 0.4, weapon: 0.2 };
  level.foodDistribution = { apple: 0 , banana: 0, bread: 0.3, chicken: 0.3, rice: 0.4 };
  level.ballonPieceDistribution = { hull: 0, rope: 0.50, bag: 0.50, lattern: 0, basket: 0 };
  level.waponDistribution = { knife: 0, machete: 0.50, axe: 0.45, chainsaw: 0.05 };
  level.generatorLevel = 1;
  this.levels[1] = level;
  
  // Level 2
  level = new Level();
  level.init();
  
  level.numApples = 15;
  level.numBananas = 20;
  level.numBread = 15;
  level.numMeat = 10;
  level.numRice = 5;
  
  level.pieceDistribution = 0.75;
  level.numMachetes = 10;
  level.numAxes = 3;
  level.numChainSaws = 1;
  level.itemDistribution = { food: 0.4, balloonPiece: 0.4, weapon: 0.2 };
  level.foodDistribution = { apple: 0 , banana: 0, bread: 0.3, chicken: 0.3, rice: 0.4 };
  level.ballonPieceDistribution = { hull: 0, rope: 0.50, bag: 0.50, lattern: 0, basket: 0 };
  level.waponDistribution = { knife: 0, machete: 0.50, axe: 0.45, chainsaw: 0.05 };
  level.generatorLevel = 2;
  this.levels[2] = level;
  
  // Level 3
  level = new Level();
  level.init();
  
  level.numApples = 10;
  level.numBananas = 15;
  level.numBread = 20;
  level.numMeat = 15;
  level.numRice = 10;
  
  level.pieceDistribution = 0.75;
  level.numMachetes = 0;
  level.numAxes = 10;
  level.numChainSaws = 2;
  level.itemDistribution = { food: 0.4, balloonPiece: 0.4, weapon: 0.2 };
  level.foodDistribution = { apple: 0 , banana: 0, bread: 0.3, chicken: 0.3, rice: 0.4 };
  level.ballonPieceDistribution = { hull: 0, rope: 0.50, bag: 0.50, lattern: 0, basket: 0 };
  level.waponDistribution = { knife: 0, machete: 0.50, axe: 0.45, chainsaw: 0.05 };
  level.generatorLevel = 3;
  level.checkCompleteConditions = function() {
    if( hero.burners != 1) {
      return false;
      //TODO: Show message
    }
    return true;
  };
  this.levels[3] = level;
  
  // Level 4
  level = new Level();
  level.init();
  
  level.numApples = 5;
  level.numBananas = 10;
  level.numBread = 15;
  level.numMeat = 20;
  level.numRice = 15;
  
  level.pieceDistribution = 1;
  level.numMachetes = 0;
  level.numAxes = 0;
  level.numChainSaws = 7;
  level.itemDistribution = { food: 0.4, balloonPiece: 0.4, weapon: 0.2 };
  level.foodDistribution = { apple: 0 , banana: 0, bread: 0.3, chicken: 0.3, rice: 0.4 };
  level.ballonPieceDistribution = { hull: 0, rope: 0.50, bag: 0.50, lattern: 0, basket: 0 };
  level.waponDistribution = { knife: 0, machete: 0.50, axe: 0.45, chainsaw: 0.05 };
  level.generatorLevel = 4;
  this.levels[4] = level;
  

}
